
from django.contrib.auth.models import User
from rest_framework import serializers

class UserDescSerailizer(serializers.ModelSerializer):
    #用于文章列表引用的嵌套序列化器
    
    class Meta:
        model = User
        fields = ['id','username','last_login','date_joined']